package com.packtpub.mainproject2.model;
//@Entity
//@Table(name="SONG") 
public class Song {
	//@ Id 
	//@ GeneratedValue (strategy = GenerationType.AUTO) 
	//@ Column (name = "id", nullable = false) 
	private Long id;
    
	//@ Column (name = "name", nullable = false, length= 50) 
	private String name;
	//@ Column (name = "artist", nullable = false, length= 50) 
	private String artist;
	//@ Column (name = "album", nullable = true, length= 50) 
	private String album;
	//@ Column (name = "rls_year", nullable = true) 
	private int rls_Year;
	public void setId(long id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	public void setArtist(String artist) {
		this.artist = artist;
	}
	public String getArtist() {
		return artist;
	}
	public void setAlbum(String album) {
		this.album = album;
	}
	public String getAlbum() {
		return album;
	}
	public void setRls_Year(int rls_Year) {
		this.rls_Year = rls_Year;
	}
	public int getRls_Year() {
		return rls_Year;
	}
	
	//@Inject
	public Song()
	{
	}
	
	public Song(int id , String name , String artist, String album, int rls_Year)
	{
		this.setId(id);
		this.name = name;
		this.artist = artist;
		this.album =  album;
		this.rls_Year = rls_Year;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}
}
